package com.fesine.produce;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2017/7/28 23:33
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/7/28 23:33
 */
public class Test {
    public static void main(String[] args) {
        Storage3 s = new Storage3();
        ProducerThread p1 = new ProducerThread(s,"p1");
        ProducerThread p2 = new ProducerThread(s, "p2");
        ProducerThread p3 = new ProducerThread(s, "p3");
        ProducerThread p4 = new ProducerThread(s, "p4");
        ProducerThread p5 = new ProducerThread(s, "p5");
        ProducerThread p6 = new ProducerThread(s, "p6");
        ProducerThread p7 = new ProducerThread(s, "p7");
        ConsumerThread c1 = new ConsumerThread(s,"c1");
        ConsumerThread c2 = new ConsumerThread(s,"c2");
        ConsumerThread c3 = new ConsumerThread(s,"c3");
        p1.setNum(10);
        p2.setNum(10);
        p3.setNum(10);
        p4.setNum(40);
        p5.setNum(10);
        p6.setNum(30);
        p7.setNum(80);
        c1.setNum(50);
        c2.setNum(20);
        c3.setNum(30);
        c1.start();
        c2.start();
        c3.start();
        p1.start();
        p2.start();
        p3.start();
        p4.start();
        p5.start();
        p6.start();
        p7.start();
    }
}
